package com.theatre.userservice.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("shop")
@Data
public class Shop {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("name")
    private String name;
    @TableField("address")
    private String address;
    @TableField("phone")
    private String phone;
    @TableField("email")
    private String email;
    @TableField("license_file")
    private String licenseFile;
    @TableField("status")
    private int status;
    @TableField("remark")
    private String remark;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;  // 驼峰命名（Java字段）
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;  // 驼峰命名（Java字段）
    @TableField(exist = false)
    private String user;
}
